<?php
/**
 * The following code, none of which has BUG.
 *
 * @author: BD<657306123@qq.com>
 * @date: 2019/11/20 17:15
 */
declare (strict_types = 1);

namespace app\common\event;

use app\common\contract\UserInterface;

class Login{

	/**
	 * @var \app\common\contract\UserInterface
	 */
	protected $user = null;

	/**
	 * Login constructor.
	 *
	 * @param \app\common\contract\UserInterface $user
	 */
	public function __construct(UserInterface $user = null){ $this->user = $user; }

	/**
	 * @return \app\common\contract\UserInterface
	 */
	public function getUser():\app\common\contract\UserInterface{
		return $this->user;
	}

	/**
	 * @param \app\common\contract\UserInterface $user
	 */
	public function setUser(\app\common\contract\UserInterface $user):void{
		$this->user = $user;
	}

}
